#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void init(char* p)
{
	while (*p != '\0')
	{
		*p = 0;
		p++;
	}
}

void print(char* p)
{
	while (*p != '\0')
	{
		printf("%c", *p);
		p++;
	}
}

char reverse(char* p)
{
	int l = 0;
	int r = strlen(p) - 1;
	while (l < r)
	{
		char tmp = p[l];
		p[l] = p[r];
		p[r] = tmp;
		l++;
		r--;
	}
}
int main()
{
	char arr[12] = "qwerstw";
	
	print(arr);
	printf("\n");

	reverse(arr);
	printf("%s", arr);

	init(arr);
}


















